Skip to main content

XPDFViewer_GetSelectionRange

Type

function

Summary

Get the current selectionRange from a PDF Viewer.

Syntax

XPDFViewer_GetSelectionRange(<viewerName>)

Description

The function returns the range as startPageNumber, startCharOnPage, endPageNumber, endCharOnPage. Insertion point is returned as start page number, char insertion point is after, endPageNumber - same as start, char insertion point is after - 1

If item 1 equals item 3 and item 4 is less than item 2 then it is an insertion point position.

The function will return empty if there is no selection.

The following errors may be thrown by the command:

  • XPDF_ERROR: incorrect number of parameters
  • XPDF_ERROR: PDF viewer not found

Parameters

NameTypeDescription

viewerName

string

The name of the viewer.

Examples

put XPDFViewer_GetSelectionRange("Document1") into theCurrentSelection

Compatibility and Support

Introduced

LiveCode 1.0.0

OS

mac

windows

Platforms

desktop

Thank you for your feedback!

Was this page helpful?